package com.TP.www.po;

/**
 * @author 邱彦祥
 * 顾客类与商家类的父类
 */
public class User {
    private Integer id;
    private String name;
    private String password;
    private Double asset;

    public User() {
    }

    public User(Integer id, String name, String password, Double asset) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.asset = asset;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String customerName) {
        this.name = customerName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Double getAsset() {
        return asset;
    }

    public void setAsset(Double asset) {
        this.asset = asset;
    }

    @Override
    public String toString() {
        return "Merchant{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", asset=" + asset +
                '}';
    }
}
